package com.woniuxy.common.entity;

import java.util.ArrayList;
import java.util.List;

public class ShopMerchantLevelExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ShopMerchantLevelExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMerchantLevelIdIsNull() {
            addCriterion("merchant_level_id is null");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdIsNotNull() {
            addCriterion("merchant_level_id is not null");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdEqualTo(String value) {
            addCriterion("merchant_level_id =", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdNotEqualTo(String value) {
            addCriterion("merchant_level_id <>", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdGreaterThan(String value) {
            addCriterion("merchant_level_id >", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdGreaterThanOrEqualTo(String value) {
            addCriterion("merchant_level_id >=", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdLessThan(String value) {
            addCriterion("merchant_level_id <", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdLessThanOrEqualTo(String value) {
            addCriterion("merchant_level_id <=", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdLike(String value) {
            addCriterion("merchant_level_id like", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdNotLike(String value) {
            addCriterion("merchant_level_id not like", value, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdIn(List<String> values) {
            addCriterion("merchant_level_id in", values, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdNotIn(List<String> values) {
            addCriterion("merchant_level_id not in", values, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdBetween(String value1, String value2) {
            addCriterion("merchant_level_id between", value1, value2, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andMerchantLevelIdNotBetween(String value1, String value2) {
            addCriterion("merchant_level_id not between", value1, value2, "merchantLevelId");
            return (Criteria) this;
        }

        public Criteria andLevelNameIsNull() {
            addCriterion("level_name is null");
            return (Criteria) this;
        }

        public Criteria andLevelNameIsNotNull() {
            addCriterion("level_name is not null");
            return (Criteria) this;
        }

        public Criteria andLevelNameEqualTo(String value) {
            addCriterion("level_name =", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameNotEqualTo(String value) {
            addCriterion("level_name <>", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameGreaterThan(String value) {
            addCriterion("level_name >", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameGreaterThanOrEqualTo(String value) {
            addCriterion("level_name >=", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameLessThan(String value) {
            addCriterion("level_name <", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameLessThanOrEqualTo(String value) {
            addCriterion("level_name <=", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameLike(String value) {
            addCriterion("level_name like", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameNotLike(String value) {
            addCriterion("level_name not like", value, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameIn(List<String> values) {
            addCriterion("level_name in", values, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameNotIn(List<String> values) {
            addCriterion("level_name not in", values, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameBetween(String value1, String value2) {
            addCriterion("level_name between", value1, value2, "levelName");
            return (Criteria) this;
        }

        public Criteria andLevelNameNotBetween(String value1, String value2) {
            addCriterion("level_name not between", value1, value2, "levelName");
            return (Criteria) this;
        }

        public Criteria andImposeIsNull() {
            addCriterion("impose is null");
            return (Criteria) this;
        }

        public Criteria andImposeIsNotNull() {
            addCriterion("impose is not null");
            return (Criteria) this;
        }

        public Criteria andImposeEqualTo(Long value) {
            addCriterion("impose =", value, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeNotEqualTo(Long value) {
            addCriterion("impose <>", value, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeGreaterThan(Long value) {
            addCriterion("impose >", value, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeGreaterThanOrEqualTo(Long value) {
            addCriterion("impose >=", value, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeLessThan(Long value) {
            addCriterion("impose <", value, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeLessThanOrEqualTo(Long value) {
            addCriterion("impose <=", value, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeIn(List<Long> values) {
            addCriterion("impose in", values, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeNotIn(List<Long> values) {
            addCriterion("impose not in", values, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeBetween(Long value1, Long value2) {
            addCriterion("impose between", value1, value2, "impose");
            return (Criteria) this;
        }

        public Criteria andImposeNotBetween(Long value1, Long value2) {
            addCriterion("impose not between", value1, value2, "impose");
            return (Criteria) this;
        }

        public Criteria andThresholdIsNull() {
            addCriterion("threshold is null");
            return (Criteria) this;
        }

        public Criteria andThresholdIsNotNull() {
            addCriterion("threshold is not null");
            return (Criteria) this;
        }

        public Criteria andThresholdEqualTo(Long value) {
            addCriterion("threshold =", value, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdNotEqualTo(Long value) {
            addCriterion("threshold <>", value, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdGreaterThan(Long value) {
            addCriterion("threshold >", value, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdGreaterThanOrEqualTo(Long value) {
            addCriterion("threshold >=", value, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdLessThan(Long value) {
            addCriterion("threshold <", value, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdLessThanOrEqualTo(Long value) {
            addCriterion("threshold <=", value, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdIn(List<Long> values) {
            addCriterion("threshold in", values, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdNotIn(List<Long> values) {
            addCriterion("threshold not in", values, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdBetween(Long value1, Long value2) {
            addCriterion("threshold between", value1, value2, "threshold");
            return (Criteria) this;
        }

        public Criteria andThresholdNotBetween(Long value1, Long value2) {
            addCriterion("threshold not between", value1, value2, "threshold");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}